package com.wn.framework.helper

import android.app.Application

/**
 * @Author: wn
 * @Date: 2025/7/16 15:58
 * @Description: 提供 全局 Context , 是否为 debug 环境
 */
object AppHelper {

  private lateinit var app: Application

  private var isDebug = false

  /**
   * 初始化应用环境
   * @param application Application
   * @param isDebug Boolean
   */
  fun init(application: Application, isDebug: Boolean) {
    this.app = application
    this.isDebug = isDebug
  }

  /**
   * 获取全局应用
   * @return Application
   */
  fun getApplication() = app

  /**
   * 是否为 debug 环境
   * @return Boolean
   */
  fun isDebug() = isDebug

}